package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2023-09-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_back_set_item")
public class OrderBackSetItemDo extends Model<OrderBackSetItemDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 主表ID
     */
    @TableField("set_id")
    private Long setId;

    /**
     * 类型 1 上架 2 废弃
     */
    @TableField("type")
    private Integer type;

    /**
     * 标准ID
     */
    @TableField("value_id")
    private Long valueId;
    @TableField("create_by")
    private Long createBy;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("delete_by")
    private Long deleteBy;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;
    public OrderBackSetItemDo() {
    }

    public OrderBackSetItemDo( Long setId, Integer type, Long valueId) {
        this.setId = setId;
        this.type = type;
        this.valueId = valueId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
